package cn.edu.java.io;

import java.io.File;
import java.io.IOException;

public class Test {
    public static void main(String[] args) throws IOException {
        File file = new File("test.txt");

        if (!file.exists()) {
            file.createNewFile();
        }
        System.out.println(file.exists());
    }
}
